﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management/Management.master" AutoEventWireup="true"
    CodeFile="AccessRole.aspx.cs" Inherits="Admin_AccessRole" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table>
        <tr>
            <td>
                <div class="Dialog">
                    <div class="Title">
                        前台用户访问规则管理
                    </div>
                    <div class="Content">
                        <table>
                            <tr>
                                <td>
                                    <b>为此规则选择目录：</b>
                                    <div style="width: 300px; height: 300px; overflow: scroll; overflow-x: hidden">
                                        <asp:TreeView ID="TreeView1" runat="server" ImageSet="XPFileExplorer" NodeIndent="15"
                                            OnTreeNodePopulate="NodePopulate" ShowLines="True" ExpandDepth="1" ShowCheckBoxes="Leaf">
                                            <ParentNodeStyle Font-Bold="False" />
                                            <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                                            <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                                                VerticalPadding="0px" />
                                            <RootNodeStyle Font-Size="12px" />
                                            <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" HorizontalPadding="2px"
                                                NodeSpacing="0px" VerticalPadding="2px" />
                                            <LeafNodeStyle Font-Size="12px" />
                                        </asp:TreeView>
                                    </div>
                                </td>
                                <td style="vertical-align: top; width: 250px;">
                                    <b>规则应用于：</b>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                                                    <asp:ListItem Value="1">用户组</asp:ListItem>
                                                    <asp:ListItem Value="2">所有用户</asp:ListItem>
                                                    <asp:ListItem Value="3">匿名用户</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                            <td style="vertical-align: top;">
                                                <asp:DropDownList ID="list_Group" runat="server" 
                                                    DataSourceID="ObjectDataSource1" DataTextField="Key" 
                                                    DataValueField="Value">
                                                </asp:DropDownList>
                                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetUserGroup"
                                                    TypeName="Avatar.MembershipService.UserGroupManager"></asp:ObjectDataSource>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="vertical-align: top; width: 200px;">
                                    <b>权限：</b><asp:RadioButtonList ID="list_Access" runat="server">
                                        <asp:ListItem Value="true">允许</asp:ListItem>
                                        <asp:ListItem Selected="True" Value="false">拒绝</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: right;">
                <asp:Label ID="lbl_Error" runat="server" ForeColor="Red"></asp:Label>
                &nbsp;<asp:Button ID="btn_Submit" runat="server" CssClass="Button" Width="100px"
                    OnClick="btn_Submit_Click" Text="提交" />
            </td>
        </tr>
    </table>
</asp:Content>
